package com.sh_rw.label.listener;


import com.sh_rw.label.bean.BaseLabel;
import com.sh_rw.label.bean.BasicParam;
import com.sh_rw.label.bean.RFBean;

/**
 * Created by rw-duke on 2018/4/4.
 */

public interface ParserListener<T extends BaseLabel> {
    void onLabelCallback(int cmd, T t);

    /*设备射频参数*/
    void onRFCallback(RFBean rfBean);

    /*设备基本参数回调*/
    void onBaseArgCallback(BasicParam basicParam);

    /*指令发送成功*/
    void onSuccess();

    /*指令发送失败*/
    void onFail();

    /*解析错误*/
    void onError(Exception o);
}
